<?php
    require("./Utils.php");

    $post = getJsonParamter();

    $id = $post['id'];

    $sql = "DELETE FROM pet_type WHERE id = ?";
    $conn = getConnection();

    $result = execute($conn, $sql, $id);

    if($result) getJson(200, '删除成功', null);

    else getJson(200, '删除失败', null);
?>
